package com.amigo.online.provider.user.model.entity;

import javax.persistence.Column;
import javax.persistence.Table;

import org.apache.ibatis.type.Alias;

import com.amigo.online.common.base.entity.BaseEntity;

/**
 * 相册实体类
 *
 * @author amigo
 */
@Table(name = "user_photos_tbl")
@Alias(value = "userPhotos")
public class UserPhotos extends BaseEntity {

    /**
     *
     */
    private static final long serialVersionUID = -5701749733549021224L;
    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 相片
     */
    @Column(name = "photo")
    private String photo;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;
    /**
     * 是否第一张
     */
    @Column(name = "first_img")
    private Integer firstImg;
    /**
     * 更新时间
     */
    @Column(name = "updated_time")
    private Long updatedTime;

    /**
     * 是否删除
     */
    @Column(name = "deleted")
    private Integer deleted;

    /**
     * 删除时间
     */
    @Column(name = "deleted_time")
    private Long deletedTime;

    /**
     * 状态
     */
    @Column(name = "checked")
    private Integer checked;

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Long deletedTime) {
        this.deletedTime = deletedTime;
    }

    public Integer getFirstImg() {
        return firstImg;
    }

    public void setFirstImg(Integer firstImg) {
        this.firstImg = firstImg;
    }
}
